function HandleEvent() {
  function handleClick() {
    alert('按钮被点击了！');
  }

  return (
    <button onClick={handleClick}>
      点我弹窗
    </button>
  );
}

export default HandleEvent;